package com.xiaoq.matrix.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xiaoq.matrix.entity.ContentElementEntity;
import com.xiaoq.matrix.repository.IContentElementRepository;
import com.xiaoq.matrix.service.IContentElementService;
import com.xiaoq.matrix.vo.ContentAndElementVo;
import com.xiaoq.vo.PagingVo;

@Component
public class ContentElementServiceImpl implements IContentElementService {
	
	@Autowired
	private IContentElementRepository contentElementRep;

	@Override
	public List<ContentElementEntity> findContentElementList(ContentAndElementVo contentAndElementVo,
			PagingVo pv) {
		
		return contentElementRep.findContentElementList(contentAndElementVo, pv);
	}

	@Override
	public boolean addContentElement(ContentElementEntity contentElement) {
		
		return contentElementRep.addContentElement(contentElement);
	}

}
